/**
 * 
 */
package com.showtao.front.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 * @author Fanxin Zeng
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "st_mobile_order")
public class MobileOrder extends BaseDomain{
	@Id
    @GeneratedValue
    private Long id;
	
	@Column(name = "mobile")
    private String mobile;
	
	@Column(name = "order_no")
    private String orderNo;
	
	@Column(name = "vehicle_owner")
    private String vehicleOwnerName;
	
	@Column(name = "product_name")
    private String productName;
	
	@Column(name = "car_type_code")
    private String carTypeCode;
	
	@Column(name = "product_colour")
    private String productColour;
	
	@Column(name = "descrn")
    private String descrn;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getVehicleOwnerName() {
		return vehicleOwnerName;
	}

	public void setVehicleOwnerName(String vehicleOwnerName) {
		this.vehicleOwnerName = vehicleOwnerName;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getCarTypeCode() {
		return carTypeCode;
	}

	public void setCarTypeCode(String carTypeCode) {
		this.carTypeCode = carTypeCode;
	}

	public String getProductColour() {
		return productColour;
	}

	public void setProductColour(String productColour) {
		this.productColour = productColour;
	}

	public String getDescrn() {
		return descrn;
	}

	public void setDescrn(String descrn) {
		this.descrn = descrn;
	}
	
	@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        } else if (!this.getClass().isInstance(obj)) {
            return false;
        }
        return new EqualsBuilder().append(id, ((MobileOrder) obj).getId()).isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(id).toHashCode();
    }
}
